<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller
{
	function __construct()
	{
		parent::__construct();

		$this->load->helper('url');
		$this->load->library('tank_auth');
	}
	
	function index()
	{
		$this->home();
	}
	
	function home()
	{
		if(!$this->tank_auth->is_logged_in())
		{
			$user['user_id'] = NULL;
			$user['username'] = NULL;			
		}
		else 
		{
			$user['user_id'] = $this->tank_auth->get_user_id();
			$user['usernname'] = $this->tank_auth->get_username();			
		}
		$this->load->view('_header');
		$this->load->view('top', $user);
		$this->load->view('_footer');
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */